{% extends 'base.html' %}
{% load static %}
{% block title %}homepage{% endblock %}

{% block css %}
<link href="{% static 'login.css' %}" rel="stylesheet" />
<style>
    body {
        font-family: 'Helvetica Neue', Arial, sans-serif;
        background-size: 400% 400%;
        animation: gradientBG 15s ease infinite;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
    }

    @keyframes gradientBG {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    #container {
        width: 400px;
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 30px;
        text-align: center;
    }

    h1 {
        color: #333333;
        font-size: 24px;
        margin-bottom: 20px;
    }

    p {
        color: #666666;
        margin-bottom: 30px;
    }

    .login-button {
        display: block;
        width: 100%;
        padding: 15px;
        background-color: #007bff;
        color: #ffffff;
        text-decoration: none;
        border: none;
        border-radius: 5px;
        font-size: 18px;
        margin-bottom: 15px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .login-button:hover {
        background-color: #0056b3;
    }

    .login-button:last-child {
        margin-bottom: 0;
    }

    .footer {
        margin-top: 20px;
        color: #aaa;
        font-size: 12px;
    }
</style>
{% endblock %}

{% block content %}
<div id="container">
    <h1>智能运维系统</h1>
    <p>请选择你的登录方式</p>
    <a href="../mlogin" class="login-button">系统管理员登录</a>
    <a href="../login" class="login-button">运维人员登录</a>
    <div class="footer">© 2024 Mysite. All rights reserved.</div>
</div>
{% endblock %}
